<!-- navbar header -->
<div class="navbar-header {{app.settings.navbarHeaderColor}}">
    <button class="pull-right visible-xs dk" ui-toggle-class="show" data-target=".navbar-collapse">
        <i class="glyphicon glyphicon-cog"></i>
    </button>
    <button class="pull-right visible-xs" ui-toggle-class="off-screen" data-target=".app-aside" ui-scroll="app">
        <i class="glyphicon glyphicon-align-justify"></i>
    </button>
    <!-- brand -->
    <a href="javascript:;" ui-sref="app.home.index" class="navbar-brand text-lt" style="font-size: 13px;">
        <!--<i class="fa fa-btc"></i>-->
        <img src="img/logo.png" alt="." class="hide">
        <!--<span class="hidden-folded m-l-xs">{{app.name}}</span>-->
        <!-- <span class="hidden-folded m-l-xs">租管-大金融平台首页</span> -->
    </a>
    <!-- / brand -->
</div>
<!-- / navbar header -->
<!-- navbar collapse -->
<div class="collapse pos-rlt navbar-collapse box-shadow {{app.settings.navbarCollapseColor}}" ng-controller="headerCtrl">
    <!-- buttons -->
    <div class="nav navbar-nav hidden-xs">
        <a href class="btn no-shadow navbar-btn" ng-click="app.settings.asideFolded = !app.settings.asideFolded">
            <i class="fa {{app.settings.asideFolded ? 'fa-indent' : 'fa-dedent'}} fa-fw"></i>
        </a>
        <a href class="btn no-shadow navbar-btn" ui-toggle-class="show" target="#aside-user">
            <i class="icon-user fa-fw"></i>
        </a>
    </div>
    <span class="loginOut">退出登录 <img src="img/exit.png"/></span>
    <!-- / buttons -->
    <!-- nabar right -->
    <!--<ul class="nav navbar-nav navbar-right">
        <li class="dropdown" dropdown>
            <a href class="dropdown-toggle clear" dropdown-toggle>
                <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
                <img src="img/user.png" alt="...">
                <i class="on md b-white bottom"></i>
              </span>
                <span class="hidden-sm hidden-md">{{userPhone.phone}}</span> <b class="caret"></b>
            </a>
            <ul class="dropdown-menu animated fadeInRight w">
                <li>
                    <a ui-sref="app.suim.changePsw">修改密码</a>
                </li>
                <li>
                    <a ng-click="loginOut()">退出登录</a>
                </li>
            </ul>
        </li>
    </ul>-->
    <!-- / navbar right -->
</div>
<!-- / navbar collapse -->
<script type="text/javascript">
    app.controller('headerCtrl', function($scope,$http,rest,$compile,$location,ngDialog,user,$state,$window,uiLoad,$rootScope,$ocLazyLoad) {
        $('.loginOut').on('click', function() {
            $window.localStorage.clear();
            $state.go('access.signin');
        });
    });
</script>